<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>层次(关系)选择器</title>
    <style>
        /* 所有兄弟 */
        h1~p {
            border: 1px solid red;
        }
    </style>
</head>

<body>
    <div>
        <p>p0</p>
        <h1>h1</h1>
        <p>p1</p>
        <p>p2</p>
        <p>p3</p>
    </div>
</body>

</html>